home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 126-150 / disk_150 / execlib / test.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  512b  |  31 lines

  1.  
  2. #include <exec/types.h>
  3.  
  4. int FLamBase;
  5.  
  6.  
  7. void main()
  8. {
  9.   register int test;
  10.  
  11.     if ( !(FLamBase = OpenLibrary( "flam.library", 0 )))
  12.         {
  13.         printf("Open flam.library failed\n");
  14.         exit(20);
  15.         }
  16.  
  17.  
  18.     printf("OpenLib OK\n");
  19.  
  20.     test = fl_Plus( 13, 6 );
  21.     printf("fl_Plus() = %ld\n", test );
  22.     test = fl_Minus( 13, 6 );
  23.     printf("fl_Minus() = %ld\n", test );
  24.  
  25.  
  26.     CloseLibrary( FLamBase );
  27.     RemLibrary( FLamBase ); /* Optional - call the lib expunge routine */
  28.  
  29.     exit(0);
  30. }
  31.